<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine.min.js',2); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine-zh_CN.js',2); ?>
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->params['static'].'assets/css/validationEngine.jquery.css'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							<h3 class="red">添加综合奖学金申请</h3>
</div>
<div class="row">
 <div class="col-xs-12">
  <div class="row">
    <div class="col-xs-12">
	<div class="alert alert-info">
												<button type="button" class="close" data-dismiss="alert">
													<i class="icon-remove"></i>
												</button>
												参看<strong>学生手册 88 页</strong>

												你会有更多发现。
												<br>添加奖学金的详细条目时，注意 <strong>学期</strong> 的选择，添加之后可以到 <strong>已添加的综合奖学金</strong> 查看。
												<br>添加的条目会在后台被老师 <strong>审核</strong> ，请注意填写要求
												<br>
	</div>
	</div>
   </div>
 <div class="row">  
  <div class="col-sm-12">
										<div class="tabbable">
											<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab4">
												<li class="active">
													<a data-toggle="tab" href="#form1"><i class="icon-flag"></i>品德行为</a>
												</li>
                                                <li class="">
													<a data-toggle="tab" href="#form2">学业表现</a>
												</li>
												
												<li class="">
													<a data-toggle="tab" href="#form3">文体综合素质</a>
												</li>
											</ul>

											<div class="tab-content">
												<div id="form1" class="tab-pane active">
													<?php echo $this->renderPartial('_morality',array('pd'=>$pd)); ?>
												</div>
                                                <div id="form2" class="tab-pane">
													<?php echo $this->renderPartial('_integrate',array('xy'=>$xy)); ?>
												</div>
												<div id="form3" class="tab-pane">
													<?php echo $this->renderPartial('_physical',array('wt'=>$wt)); ?>
												</div>

												
											</div>
										</div>
		</div>
    </div>
   </div>
 </div> 
<script type="text/javascript">
  $(document).ready(function(){
   
   $('[data-rel=popover]').popover({container:'body'});
   
   <?php
      if(Yii::app()->user->hasFlash('add')){
		  echo 'bootbox.alert("'.Yii::app()->user->getFlash('add').'",function(){});';
	  }
   ?>
   
  //begin the validate
  $(".form-horizontal").validationEngine("attach",{ 
		promptPosition:"topRightt", 
		scroll:true,
		validateNonVisibleFields:false,
  }); 
 });
</script>